<?php
class Prof_Form_Rep extends Zend_Form{
	public function init(){
		$this->setMethod('post');
		
		$obj = new Zend_Form_Element_Text('texte');
		$obj	->setLabel('Text')
				->setRequired(true)
				->setAttrib('class', 'validate[required]')
				->addFilter('StripTags')
				->addFilter('StringTrim')
				->addValidator('NotEmpty')
				->setDecorators(array('ViewHelper'));
		$this->addElement($obj);
		
		$hiddenrep = new Zend_Form_Element_Hidden('num_rep');
		$hiddenrep	->setDecorators(array('ViewHelper'));
		$this->addElement($hiddenrep);
		
		$hiddenID = new Zend_Form_Element_Hidden('id_qcm');
		$hiddenID	->setDecorators(array('ViewHelper'));
		$this->addElement($hiddenID);
		
		$hidden = new Zend_Form_Element_Hidden('num_quest');
		$hidden	->setDecorators(array('ViewHelper'));
		$this->addElement($hidden);
		
		$submit = new Zend_Form_Element_Submit('submit');
		$submit	->setLabel('Send')
				->setDecorators(array('ViewHelper'));
		$this->addElement($submit);
	}
}